package cz.su.pod.ksocializer.client.activity;

import java.util.Map;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

import cz.su.pod.ksocializer.client.service.SocialPoster;
import cz.su.pod.ksocializer.client.service.SocialPosterAsync;
import cz.su.pod.ksocializer.shared.domain.SocialNetwork;
import cz.su.pod.ksocializer.shared.domain.State;

public class KSocializerCreateActivity {
	
	private final SocialPosterAsync socialPosterService = GWT.create(SocialPoster.class);
	
	public void post(String message, AsyncCallback<Map<SocialNetwork,State>> callback) {
		socialPosterService.postMessage(message, callback);
	}
}
